import { Http,HttpModule } from '@angular/http';
import { ValueService } from './services/value.service';
import { DataService } from './services/data.service';

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule,ReactiveFormsModule}    from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { RedPacketComponent } from './red-packet/red-packet.component';


@NgModule({
  declarations: [
    AppComponent,
    RedPacketComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule, //模板式表单
    ReactiveFormsModule, //响应式表单
    HttpModule
  
  ],
  providers: [
    DataService,
    ValueService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
